<?php
/**
 * 用户类
 *
 */

namespace dragon\User;

use dragon\Hotel\HotelRoom;
use dragon\SysConfig;
use think\Db;
use think\Model;
use think\Exception;
use dragon\Company\Entity\Company;

class User extends Model
{
    protected $autoWriteTimestamp = true;
    const ADMIN_TYPE = 1;

    // 是否是管理员
    public function isAdminUser() {
        return $this->user_type == self::ADMIN_TYPE;
    }

    // 是否为平台调度员
    public function getIsAdminUserAttr() {
        return $this->isAdminUser();
    }

}